package com.cosina.game.crystallight.ui.battle.drawable;

import android.graphics.Bitmap;
import android.graphics.Canvas;

import com.cosina.game.crystallight.engine.BattleEngine;
import com.cosina.game.crystallight.model.battle.Ability;
import com.cosina.game.crystallight.ui.battle.BattleResource;
import com.cosina.game.crystallight.ui.battle.drawadapter.BaseDrawable;
import com.cosina.game.crystallight.ui.common.PaintSuite;

public class BoxDrawable extends BaseDrawable {
	
	@Override
	public void draw(Canvas canvas) {
		if(BattleEngine.desk.canFeeds()){
			Bitmap bitmap = BattleResource.get(Ability.GENM);
			for (int i = 0; i < 6; i++) {
				canvas.drawBitmap(bitmap, 
						getXSpan() + 44 * i + (i>=3 ? 54 : 0), 
						getYSpan(),
						PaintSuite.p4Simple);
			}
		}
	}
	
	public int getXSpan(){
		return 1;
	}
	
	public int getYSpan(){
		return 5+44*9;
	}
 }
